<template>
    <div class="homeheaderWrapper">
        <span class="iconfont iconnew"></span>
        <div class="searchWrapper" @click="$router.push('/search')">
            <span class="iconfont iconsearch"></span>
            <span class="searchText">搜索新闻</span>
        </div>
        <span
            class="iconfont iconwode"
            @click="$router.push('/profile')"
        ></span>
    </div>
</template>

<script>
    export default {};
</script>

<style lang="less" scoped>
    .homeheaderWrapper {
        display: flex;
        align-items: center;
        background-color: red;
        color: white;
        padding: 0 18 /360 * 100vw;
        .iconnew {
            font-size: 54 /360 * 100vw;
        }
        .iconwode {
            font-size: 32 /360 * 100vw;
            opacity: 0.6;
        }
        .searchWrapper {
            flex-grow: 1;
            text-align: center;
            background-color: rgba(255, 255, 255, 0.5);
            margin: 0 20 /360 * 100vw;
            height: 34 /360 * 100vw;
            line-height: 34 /360 * 100vw;
            border-radius: 17 /360 * 100vw;
            font-size: 16 /360 * 100vw;
            .searchText {
                padding-left: 6 /360 * 100vw;
            }
        }
    }
</style>